/*
 * Copyright (c) 2006-2021, RT-Thread Development Team
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author       Notes
 * 2024-05-12     liuchao       the first version
 */
#ifndef DRIVERS_INCLUDE_DRV_PANEL_H_
#define DRIVERS_INCLUDE_DRV_PANEL_H_
#include "board.h"

#define PANEL_RED_PIN GET_PIN(E,2)
#define PANEL_GREEN_PIN GET_PIN(E,3)
#define PANEL_YELLOW_PIN GET_PIN(E,4)
#define PANEL_BEEP_PIN GET_PIN(E,5)

typedef enum
{
    PANEL_START, PANEL_RED = PANEL_START, PANEL_GREEN, PANEL_YELLOW, PANEL_BEEP, PANEL_END
} panel_e;

const char* panel_name(panel_e panel);
void panel_on(panel_e panel);
void panel_off(panel_e panel);

#endif /* DRIVERS_INCLUDE_DRV_PANEL_H_ */
